package cn.tedu.charging.device.service.impl.impl;

import cn.tedu.charging.device.dao.repository.GunRepository;
import cn.tedu.charging.device.service.GunService;
import cn.tedu.common.pojo.param.GunStatusUpdateParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class GunServiceImpl implements GunService {
    private GunRepository gunRepository;
    public  GunServiceImpl( GunRepository gunRepository) {
       this.gunRepository=gunRepository;
    }

    @Override
    public Boolean editGunStatus(GunStatusUpdateParam param) {
         return gunRepository.updateGunStatus(param)>0;
    }
}
